package com.hmall.api.config;

import com.hmall.api.interceptors.UserInfoRequestInterceptor;
import feign.Logger;
import feign.RequestInterceptor;
import org.springframework.context.annotation.Bean;

/**
 * <p>
 * DefaultFeignConfig
 * </p>
 *
 * @author flyduck
 * @since 2025-03-15
 */
public class DefaultFeignConfig {
    @Bean
    public Logger.Level feignLogLevel(){
        return Logger.Level.FULL;
    }

    @Bean
    public RequestInterceptor userInfoRequestInterceptor(){
        return new UserInfoRequestInterceptor();
    }
}
